<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
	<script src="https://cdn.bootcss.com/jquery/2.2.0/jquery.js"></script>
</head>
<body>
	<button id="a">a</button>
	<button id="b">b</button>
	<br>
	<div></div>
<script>
	$(function () {
		$("#a").click(function () {
			for(var i=0; i< 10000000000; i++){

			}
			$("#a").html("aaaaaaa");
		});
		$("#b").click(function () {
			$("#b").html("bbbbbbb");
		});
		for(var i=0; i< 10000000000; i++){
			$("div").append("c");
		}
	})
</script>
</body>
</html>